package chainhandler;


public class Client {

	private Handler handler;
	
	public void setHandler(Handler handler) {
		this.handler = handler;
	}

	public void request(int price) {
		handler.requst(price);
	}
	
	public static void main(String[] args) {
		Client client = new Client();
		client.setHandler(HandlerFactory.createHandler());
		
		
		client.request(300);
	}
}
